﻿<%@ Page Title="" Language="C#" MasterPageFile="~/mobile/mobileMaster.master" AutoEventWireup="true"
    CodeFile="Fixture.aspx.cs" Inherits="Fixture" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContentPlaceHolder" runat="Server">
    <asp:Literal runat="server" ID="PageTitle"></asp:Literal>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #left
        {
            width: 631px !important;
            height: 100%;
            float: right;
            margin-right: 1px;
            padding-bottom: 50px;
        }
        #middle
        {
            float: right;
            width: 100%;
            height: 100%;
            background: #fff !important;
        }
        .trColor td:hover
        {
            background-color: #ccc;
            color: #333;
            cursor: pointer;
        }
        .trColor td a
        {
            color: #fff;
            cursor: pointer;
            text-decoration: none;
        }
        .trColor td:hover a
        {
            background-color: #ccc;
            color: #333;
            cursor: pointer;
            text-decoration: none;
        }
        
        .Selected
        {
            background-color: #ccc;
            color: #fff;
            cursor: pointer;
        }
        
        .trColor td a
        {
            width: 100%;
            height: 100%;
            display: block;
            line-height: 29px;
        }
    </style>
    <!-- OpenGraph meta -->
    <meta property="fb:app_id" content="384070111692466" />
    <meta property="og:type" content="Sport" />
    <meta property="og:image" content='http://livekora.net/images/liveKoraLogo.png' />
    <meta property="og:title" content='أخبار كرة القدم | لايف كورة الرياضي | آخر الأحداث الرياضية و كرة القدم – LiveKora  لايف كورة' />
    <meta property="og:description" content='لايف كورة |  نتائج و مواعيد المباريات | المباريات المباشرة' />
    <meta property="og:url" content="http://livekora.net/Fixtures" />
    <script type="text/javascript">
        function funResetSelected(id) {
            $("#td1").removeClass("Selected");
            $("#td2").removeClass("Selected");
            $("#td3").removeClass("Selected");
            $("#td4").removeClass("Selected");
            $("#td5").removeClass("Selected");
            $("#td6").removeClass("Selected");
            $("#td7").removeClass("Selected");
            $("#td8").removeClass("Selected");
            $("#td9").removeClass("Selected");
            $("#" + id).addClass("Selected");

        }
        function funRedirectIframe(target) {
            switch (target) {
                case "1":
                    $("#iframeTest").attr("src", "http://sna.hosted3.globalsportsmedia.com/?sport=soccer");
                    funResetSelected('td1');
                    break;
                case "2":
                    $("#iframeTest").attr("src", "http://sna.hosted3.globalsportsmedia.com/?sport=home&page=home");
                    funResetSelected('td2');
                    break;
                case "3":
                    $("#iframeTest").attr("src", 'http://sna.hosted3.globalsportsmedia.com/?sport=home&page=matches&date=<%= DateTime.Now.AddDays(+2).ToString("yyyy-MM-dd") %>');
                    funResetSelected('td3');
                    break;
                case "4":
                    $("#iframeTest").attr("src", 'http://sna.hosted3.globalsportsmedia.com/?sport=home&page=matches&date=<%= DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd") %>');
                    funResetSelected('td4');
                    break;
                case "5":
                    $("#iframeTest").attr("src", "http://sna.hosted3.globalsportsmedia.com/?sport=soccer&page=competition&id=7");
                    funResetSelected('td5');
                    break;
                case "6":
                    $("#iframeTest").attr("src", "http://sna.hosted3.globalsportsmedia.com/?sport=soccer&page=competition&id=13");
                    funResetSelected('td6');
                    break;
                case "7":
                    $("#iframeTest").attr("src", "http://sna.hosted3.globalsportsmedia.com/?sport=soccer&page=competition&id=8");
                    funResetSelected('td7');
                    break;
                case "8":
                    $("#iframeTest").attr("src", "http://sna.hosted3.globalsportsmedia.com/?sport=soccer&page=competition&id=10");
                    funResetSelected('td8');
                    break;
                case "9":
                    $("#iframeTest").attr("src", "http://sna.hosted3.globalsportsmedia.com/?sport=soccer&page=competition&id=18");
                    funResetSelected('td9');
                    break;
                default:
                    alert("error");
                    break;
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="color: #fff; padding: 20px 10px; margin-bottom: 0;">
        <h1>
            نتائج و مواعيد المباريات</h1>
    </div>
    <div class="content">
        <article class="underline">
		    <table width="100%" cellpadding="0" cellspacing="0">
                <tr class="trColor">
            <td id="td1" class="Selected" style="width: 10%; font-size: 12px; height: 30px;"
                align="center">
                <a onclick="funRedirectIframe('1')" href="javascript:void(0)">مباشر</a>
            </td>
            <td id="td2" style="width: 10%; font-size: 12px;" align="center">
                <a onclick="funRedirectIframe('2')" href="javascript:void(0)">اليوم</a>
            </td>
            <td id="td3" style="width: 7%; font-size: 12px;" align="center">
                <a onclick="funRedirectIframe('3')" href="javascript:void(0)">غدا</a>
            </td>
            <td id="td4" style="width: 7%; font-size: 12px;" align="center">
                <a onclick="funRedirectIframe('4')" href="javascript:void(0)">أمس</a>
            </td>
            <td id="td5" style="width: 11%; font-size: 12px;" align="center" nowrap="NoWrap">
                <a onclick="funRedirectIframe('5')" href="javascript:void(0)">الدوري الاسباني</a>
            </td>
            <td id="td6" style="width: 13%; font-size: 12px;" align="center">
                <a onclick="funRedirectIframe('6')" href="javascript:void(0)">الدوري الإيطالي</a>
            </td>
            <td id="td7" style="width: 12%; font-size: 12px;" align="center" nowrap="NoWrap">
                <a onclick="funRedirectIframe('7')" href="javascript:void(0)">الدوري الانجليزي</a>
            </td>
            <td id="td8" style="width: 9%; font-size: 12px;" align="center">
                <a onclick="funRedirectIframe('8')" href="javascript:void(0)">أبطال اروبا</a>
            </td>
            <td id="td9" style="width: 12%; font-size: 12px;" align="center">
                <a onclick="funRedirectIframe('9')" href="javascript:void(0)">الدوري الأروبي</a>
            </td>
        </tr>
        <tr>
            <td colspan="9" style="width: 635px" valign="top" align="right">
                <iframe src="http://sna.hosted3.globalsportsmedia.com/?sport=soccer" style="border: 0px solid #000"
                    width="100%" height="1900px" scrolling="auto" id="iframeTest"></iframe>
            </td>
        </tr>
            </table>
        </article>
    </div>
</asp:Content>
